package cn.tedu.spring.example;

import org.springframework.stereotype.Component;

/**
 * Component注解:将当前类表示为Spring组件,交由Spring框架进行管理.
 */
@Component
public class User1 {
    public void userRun(){
        System.out.println("七月七日长生殿");
    }
}
